package com.ruoyi.caigou.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 采购询价对象 finer_buy_ask
 * 
 * @author lvql
 * @date 2024-10-24
 */
public class BuyAsk extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Integer id;

    /** 单据编号 */
    @Excel(name = "单据编号")
    private String code;

    /** 单据编号 */
    @Excel(name = "源单编号")
    private String sourceCode;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据日期", width = 30, dateFormat = "yyyy-MM-dd")
    // 单据日期
    private Date docDate;
    /** 单据阶段 */
    @Excel(name = "单据阶段")
    private Integer docStage;

    /** 审批结果 */
    @Excel(name = "审批结果")
    private Integer approvalResult;

    /** 是否生效 */
    @Excel(name = "是否生效")
    private Integer isEffect;

    /** 是否关闭 */
    @Excel(name = "是否关闭")
    private Integer isClose;

    /** 是否作废 */
    @Excel(name = "是否作废")
    private Integer isCancel;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改人 */
    @Excel(name = "修改人")
    private String modifyBy;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyDate;

    /** 是否删除(0:未删除 1:删除) */
    private Integer isDel;


    public String getSourceCode() {
        return sourceCode;
    }

    public void setSourceCode(String sourceCode) {
        this.sourceCode = sourceCode;
    }

    public Date getDocDate() {
        return docDate;
    }

    public void setDocDate(Date docDate) {
        this.docDate = docDate;
    }

    public void setDocStage(Integer docStage) {
        this.docStage = docStage;
    }

    public void setModifyBy(String modifyBy) {
        this.modifyBy = modifyBy;
    }

    public String getModifyBy() {
        return modifyBy;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public Integer getDocStage() {
        return docStage;
    }

    public void setApprovalResult(Integer approvalResult)
    {
        this.approvalResult = approvalResult;
    }

    public Integer getApprovalResult() 
    {
        return approvalResult;
    }
    public void setIsEffect(Integer isEffect) 
    {
        this.isEffect = isEffect;
    }

    public Integer getIsEffect() 
    {
        return isEffect;
    }
    public void setIsClose(Integer isClose) 
    {
        this.isClose = isClose;
    }

    public Integer getIsClose() 
    {
        return isClose;
    }
    public void setIsCancel(Integer isCancel) 
    {
        this.isCancel = isCancel;
    }

    public Integer getIsCancel() 
    {
        return isCancel;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }


    public void setModifyDate(Date modifyDate) 
    {
        this.modifyDate = modifyDate;
    }

    public Date getModifyDate() 
    {
        return modifyDate;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("docStage", getDocStage())
            .append("approvalResult", getApprovalResult())
            .append("isEffect", getIsEffect())
            .append("isClose", getIsClose())
            .append("isCancel", getIsCancel())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("modifyBy", getModifyBy())
            .append("modifyDate", getModifyDate())
            .append("isDel", getIsDel())
            .toString();
    }
}
